<?php
namespace app\models;

use yii\db\ActiveRecord;

/**
 * 用户账户
 *
 * Class UserAccount
 * @package app\models
 *
 * @property integer $id
 * @property integer $uid
 * @property float $money
 * @property float $freeze_money
 * @property integer $score
 * @property integer $point
 */
class UserAccount extends ActiveRecord
{
    /**
     * @inheritdoc
     */
    public function rules()
    {
        return [
            [['money', 'freeze_money', 'score', 'point'], 'default', 'value'=>0],
        ];
    }
}
